package com.huamulou.mcache.tair;


import com.huamulou.mcache.core.MCacheAbstrctObj;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

@SuppressWarnings({ "rawtypes", "unchecked" })
public class TairSetObj extends MCacheAbstrctObj {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Set set = new HashSet();

	public void set(Object s) {
		this.set = (Set)s;
	}

	public void add(Serializable... s) {
		if (s != null) {
			for (Serializable e : s) {
				this.set.add(e);
			}
		}
	}

	public void addAll(Set s) {
		if (s != null) {
			this.set.addAll(s);
		}
	}

	public Set getValue() {
		return this.set;
	}

}
